package com.jiaai.exception;

import java.io.Serializable;

/**
 * <p>
 * TODO
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title ServerException
 * @since 2017/10/10
 */
public class ServerException extends  Exception  implements Serializable {
    private  Integer code;

    public  ServerException(String message){
        this(500,message);
    }
    public ServerException(Integer code,String message) {
        super(message);
        this.code=code;
    }

    public ServerException(String message, Throwable cause) {
        super(message, cause);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
